var area = instance_create(0, 0, obj_Module);
var width = argument0;
var height = argument1;
for(var iii = 0; iii < height; iii++)
{
    for(var jjj = 0; jjj < width; jjj++)
    {
        var tile = 0;
        if(iii == 0)
        {
            tile = instance_create(0, 0, obj_Tile);
            setTile(jjj, iii, tile, area);
            //Top
            if(jjj == 0)
            {
                //Left
                tile.sprite_index = spr_Wall_LCC;
            }
            else if(jjj == width - 1)
            {
                //Right
                tile.sprite_index = spr_Wall_RCC;
            }
            else
            {
                tile.sprite_index = spr_Wall_Top;
            }
        }
        else if(iii == height - 1)
        {
            tile = instance_create(0, 0, obj_Tile);
            setTile(jjj, iii, tile, area);
            //Bottom
            if(jjj == 0)
            {
                //Left
                tile.sprite_index = spr_Ceiling_LCC;
            }
            else if(jjj == width - 1)
            {
                //Right
                tile.sprite_index = spr_Ceiling_RCC;
            }
            else
            {
                tile.sprite_index = spr_Wall_Bottom;
            }
        }
        else
        {
            if(jjj == 0)
            {
                //Left
                tile = instance_create(0, 0, obj_Tile);
                setTile(jjj, iii, tile, area);
                tile.sprite_index = spr_Wall_Left;
            }
            else if(jjj == width - 1)
            {
                //Right
                tile = instance_create(0, 0, obj_Tile);
                setTile(jjj, iii, tile, area);
                tile.sprite_index = spr_Wall_Right;
            }
        }
    }
}
return area;